<style>
	.name,.name *{font-size:16px;color:#000;}
	img.feedfile{width:100px;display:inline-block;max-height:100px;}
</style>
<div class="container">
		{{$page_navi}}
		<div class="row">
		{{loop $datalist $item}}
			<div id="fd-{{$item['FeedBack']['id']}}" class="col-md-4">
				<div style="border:1px solid #eee;padding:15px 10px 10px;margin:5px 0;">
					<div class="name">{{$item['FeedBack']['name']}}</div>
					<p><small>{{$item['FeedBack']['created']}}</small></p>

					<div style="margin-bottom: 5px;">
						{{loop $item['Uploadfile'] $file}}
{{if strpos($file['type'],'image/')!==false}}
	<img src="{{$file['fspath']}}" class="feedfile">
{{else}}
<p><a href="{{$file['fspath']}}" target="_blank">{{$file['name']}} [预览]</a></p>
{{/if}}
						{{/loop}}
					</div>
					<div>
						<textarea class="form-control" style="margin-bottom:3px;" rows="2" cols="100"></textarea>
						<button  class="btn btn-primary btn-xs">回复</button>

						<div class="pull-right">
							<a onclick="if(confirm('是否确认删除')) return ajaxAction('/admin/feed_backs/delete/{{$item['FeedBack']['id']}}',null,null,function(){$('#fd-{{$item['FeedBack']['id']}}').remove();});" class="btn btn-default btn-xs">删除</a>
						</div>
					</div>
				</div>
			</div>
		{{/loop}}
		</div>
		{{$page_navi}}
	
</div> 
<script>

</script>

